import {defineConfig} from 'vite';
import {viteMockServe} from 'vite-plugin-mock';
import MyViteMockServe from './plugins/my-vite-plugin-mock';

export default defineConfig(() => {

  console.log(viteMockServe()); // {name: 'vite:mock', enforce: 'pre', ...}
  console.log(MyViteMockServe()); // {name: 'my-vite-plugin-mock',  configureServer: [Function: configureServer]}

  return {
    plugins: [
      // viteMockServe(),
      MyViteMockServe(),
    ]
  };
});